let mongoose = require("mongoose");

// const registerSchema = new mongoose.Schema({
// 	root: { type: String, required: true },
// 	pwd: { type: String, required: true },
// 	accType: { type: String, required: true },
// 	user: { type: String, required: true },
// 	code: { type: String, required: true },
// });
const registerSchema = new mongoose.Schema({
	root: {
		type: String,
		required: [true, "root字段不能为空"],
	},
	pwd: {
		type: String,
		required: [true, "pwd字段不能为空"],
	},
	accType: {
		type: String,
		required: [true, "accType字段不能为空"],
	},
	user: {
		type: String,
		required: [true, "user字段不能为空"],
	},
	code: {
		type: String,
		required: [true, "code字段不能为空"],
	},
});
module.exports = registerSchema;
